package edu.umassd.visual;

import java.awt.Color;

import processing.core.PApplet;

/**
 * An extension to the {@link PApplet} class that contains useful overloads for
 * drawing and translating.
 * 
 * @author Dan Avila
 * 
 */
public abstract class Display extends PApplet implements SizedComponent
{
	private static final long serialVersionUID = -6250012261683139839L;

	/**
	 * Overload to use java color class.
	 * 
	 * @param color
	 *            - the color to use.
	 * @see PApplet#background(int)
	 */
	public void background(Color color)
	{
		background(color.getRGB());
	}

	/**
	 * Overload to use java color class.
	 * 
	 * @param color
	 *            - the color to use.
	 * @see PApplet#fill(int)
	 */
	public void fill(Color color)
	{
		fill(color.getRGB());
	}

	/**
	 * Overload to use java color class.
	 * 
	 * @param color
	 *            - the color to use.
	 * @see PApplet#color(int)
	 */
	public void color(Color black)
	{
		color(black.getRGB());
	}
}
